package qingma

import (
	"github.com/gin-gonic/gin"
	"qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"
)

type QmBurialRouter struct {
}

// InitQmBurialRouter 初始化 qmBurial表 路由信息
func (s *QmBurialRouter) InitQmBurialRouter(Router *gin.RouterGroup) {
	qmBurialRouter := Router.Group("qmBurial").Use(middleware.OperationRecord())
	qmBurialRouterWithoutRecord := Router.Group("qmBurial")
	var qmBurialApi = v1.ApiGroupApp.QingmaApiGroup.QmBurialApi
	{
		qmBurialRouter.POST("createQmBurial", qmBurialApi.CreateQmBurial)       // 新建
		qmBurialRouter.DELETE("deleteQmBurial", qmBurialApi.DeleteQmBurialById) // 删除
		qmBurialRouter.PUT("updateQmBurial", qmBurialApi.UpdateQmBurial)        // 更新
	}
	{
		qmBurialRouterWithoutRecord.GET("findQmBurial", qmBurialApi.GetQmBurialById)            // 根据ID获取
		qmBurialRouterWithoutRecord.GET("getQmBurialList", qmBurialApi.GetQmBurialList)         // 获取列表
		qmBurialRouterWithoutRecord.GET("getQmBurialDataList", qmBurialApi.GetQmBurialDataList) // 获取列表

	}
	{
		qmBurialRouterWithoutRecord.GET("getQmEventDetailList", qmBurialApi.GetQmEventDetailList) // 获取数量
	}

}
